﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace SnippetPlugin.Data {
    [DataContract]
    public class Snippet {
        private Guid _id;
        [DataMember]
        public Guid Id {
            get { return _id; }
            set { _id = value; }
        }

        private string _name;
        [DataMember]
        public string Name {
            get { return _name; }
            set { _name = value; }
        }

        private string _content;
        [DataMember]
        public string Content {
            get { return _content; }
            set { _content = value; }
        }

        public void CopyTo(Snippet snippet) {
            snippet.Id = _id;
            snippet.Name = _name;
            snippet.Content = _content;
        }
    }
}
